import request from './request'

// 获取全部/热门歌单
export function _getAllPlaylist(offset,cat,order) {
  return request({
    url: '/top/playlist',
    params: {
      limit: 35,
      offset,
      cat,
      order
    }
  })
}

// 获取歌单分类
export function _getCat() {
  return request({
    url: '/playlist/catlist'
  })
}

// 获取歌单详情
export function _getPlaylistDetail(id) {
  return request({
    url: '/playlist/detail',
    params: {
      id
    }
  })
}

// 获取歌单评论
export function _getPlaylistComment(id,offset) {
  return request({
    url: '/comment/playlist',
    params: {
      id,
      offset
    }
  })
}

// 获取推荐歌单
export function _getPlaylistRecommend(id) {
  return request({
    url: '/related/playlist',
    params: {
      id
    }
  })
}